<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .stya {
      color: orange;
    }

    .styb {
      background-color: rgb(109, 108, 202);
    }
  </style>
</head>

<body>
  <div id="app">
    <!-- :style -->
    <h1 :style="{color: 'orange',backgroundColor:'#666'}">在黑暗中战栗</h1>
    <h1 :style="{color: 'orange'}">在黑暗中战栗</h1>
    <h1 :style="{color: 'orange'}">在黑暗中战栗</h1>


    <!-- :class -->
    <h1 :class="classa">hello world</h1>
    <h1 :class="{'stya':true,}">hello world</h1>
  </div>


  <script src="../vue.js"></script>
  <script>
    var wm = new Vue({
      el: '#app',
      data: {
        classa: 'stya',
        classb: 'styb'
      },
      methods: {

      }
    })
  </script>
</body>

</html>